package org.wattdepot.cli.command;


/**
 * Exits the system when given the quit command.
 * 
 * @author Alex Kan and Kelvin Green
 * @version 2.0
 */
public class WattDepotQuitCommand extends WattDepotCommand {

  /**
   * Exits the command line interface program.
   * 
   * @param args contains an array of strings created from the user input.
   * @return the word quit.
   */
  public String doCommand(String args[]) {
    if (args.length != 1) { //Checks for correct input.
      return "Correct command is quit";
    }
    return "quit";
  }

}